import instance from '@/utils/request';

//产品类别列表
export function CategoryListApi(data) {
    return instance.request({
        url: "api/Category/CategoryList",
        method: "post",
        data
    })
}

//产品类别新增
export function AddCategoryApi(data) {
    return instance.request({
        url: "api/Category/AddCategory",
        method: "post",
        data
    })
}

//绑定下拉
export function BindCategoryApi(data) {
    return instance.request({
        url: "api/Category/CategoryListBind",
        method: "post",
        data
    })
}

//产品类别反填
export function GetCategoryByIdApi(data) {
    return instance.request({
        url: "api/Category/GetCategoryById",
        method: "post",
        data
    })
}

//产品类别编辑
export function UpdateCategoryApi(data) {
    return instance.request({
        url: "api/Category/UpdateCategory",
        method: "post",
        data
    })
}

//产品类别删除
export function DeleteCategoryApi(data) {
    return instance.request({
        url: "api/Category/DeleteCategory",
        method: "post",
        data
    })
}

//产品类别批量删除
export function DeleteCategoryListApi(data) {
    return instance.request({
        url: "api/Category/DeleteCategoryList",
        method: "post",
        data
    })
}